package org.rvk.vms.dal.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;


/**
 * The persistent class for the registration database table.
 * 
 */
@Entity
@NamedQuery(name="Registration.findAll", query="SELECT r FROM Registration r")
public class Registration implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	@Temporal(TemporalType.TIMESTAMP)
	private Date createdAt;

	private int formNumber;

	private String registrationFor;

	private int registrationForId;

	private String remarks;

	private Timestamp updatedAt;

	//bi-directional many-to-one association to Person
	@ManyToOne
	@JoinColumn(name="volunteerId")
	private Volunteer volunteer;

	public Registration() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public int getFormNumber() {
		return this.formNumber;
	}

	public void setFormNumber(int formNumber) {
		this.formNumber = formNumber;
	}

	public String getRegistrationFor() {
		return this.registrationFor;
	}

	public void setRegistrationFor(String registrationFor) {
		this.registrationFor = registrationFor;
	}

	public int getRegistrationForId() {
		return this.registrationForId;
	}

	public void setRegistrationForId(int registrationForId) {
		this.registrationForId = registrationForId;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Timestamp getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Timestamp updatedAt) {
		this.updatedAt = updatedAt;
	}

	public Volunteer getPerson() {
		return this.volunteer;
	}

	public void setPerson(Volunteer volunteer) {
		this.volunteer = volunteer;
	}

}